<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>欢迎登录!</title>
    <script src="https://cdn.bootcss.com/react/16.2.0/umd/react.production.min.js"></script>
    <script src="https://cdn.bootcss.com/react-dom/16.2.0/umd/react-dom.production.min.js"></script>
    <script src="https://cdn.bootcss.com/react-router/4.2.0/react-router.js"></script>
    <script src="https://cdn.bootcss.com/react-router-dom/4.2.2/react-router-dom.js"></script>
    <script src="https://cdn.bootcss.com/fetch/2.0.3/fetch.js"></script>
    <script src="https://cdn.bootcss.com/babel-standalone/6.26.0/babel.min.js"></script>

    <script src="https://cdn.bootcss.com/prop-types/15.6.0/prop-types.min.js"></script>

    <script src="https://cdn.bootcss.com/moment.js/2.19.4/moment.min.js"></script>
    <link href="https://cdn.bootcss.com/antd/3.0.3/antd.css" rel="stylesheet">
    <script src="https://cdn.bootcss.com/antd/3.0.3/antd.js"></script>
    <!---->
    <link href="home-layout.css" rel="stylesheet">
    <!---->
</head>
<body>
<div id="root"></div>
<script>

</script>
<script type="text/babel" src="HomeLayout.js"></script>
<script type="text/babel" src="UserList.js"></script>
<script type="text/babel" src="UserAdd.js"></script>
<script type="text/babel">

    const { BrowserRouter , Route, Link, ha } = ReactRouterDOM;
    const Router = BrowserRouter;

    class HomePage extends React.Component {
        render () {
            return (
                <HomeLayout title="桥康智能">
                </HomeLayout>
            );
        }
    }

    ReactDOM.render((
        <Router>
            <HomePage>

                <Route path="/" component={HomePage}/>
                <Route path="/user/add" component={UserAddPage}/>
                <Route path="/user/list" component={UserListPage}/>
            </HomePage>
        </Router>
    )
    ,document.getElementById('root'));
</script>
</body>
</html>